package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author liuyp
 * @date 2021/02/23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document("video_score")
public class VideoScore implements Serializable {

    /**主键*/
    private ObjectId id;
    /**用户id*/
    private Long userId;
    /**视频id（是视频Video对象的vid）*/
    private Long videoId;
    /**得分*/
    private Double score;
    /**时间*/
    private Long date;
}